package com.ivifi.shirodemo.dto;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Component;

import com.ivifi.shirodemo.dto.Role;

@Component
public class User implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -3524564386625412717L;
     
	String id;//用户编号
	String userName;//用户名
	String userPassword;//密码
	List<Role> roles;//角色id
	String islock;//用户是否被锁，0正常 1 被锁
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPassword() {
		return userPassword;
	}
	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	public String getIslock() {
		return islock;
	}
	public void setIslock(String islock) {
		this.islock = islock;
	}
	
}
